//package com.cowain.monitor.controller;
//
//import com.cowain.monitor.datasources.annotation.OperLog;
//import com.cowain.monitor.entity.ErpMoEntity;
//import com.cowain.monitor.service.ErpMoService;
//import com.cowain.monitor.utils.PmsConstantUtils;
//import com.cowain.monitor.utils.R;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.transaction.annotation.Transactional;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * PMS ehr-backend
// *
// * @Classname PmsProductionOrderController
// * @Description TODO
// * @Date 2020-07-27 19:26
// * @Created 沈科举
// */
//@Slf4j
//@RestController
//@RequestMapping("/erp/pms")
//public class PmsProductionOrderController {
////    @Autowired
////    private ErpMoService erpMoService;
////    @Scheduled(cron = "0/15 * * * * ?")
////    @OperLog(operModul = "生产订单模块", operType = "", operDesc = "生产订单信息同步")
////    @GetMapping("/findErpMoByIsDel")
////    public void syncErpOrder(){
////        List<ErpMoEntity> erpMoList = erpMoService.findErpMoByIsDel(PmsConstantUtils.IS_DEL.intValue());
////        if(null!=erpMoList && 0!=erpMoList.size()){
////            int result = erpMoService.addPmsProductionOrderEntity(erpMoList);
////            if(0<result){
////                result= erpMoService.updatErpMoById(erpMoList);
////                if(0<result){
////                    System.out.println("生产订单同步成功");
////                    return;
////                }
////            }
////            System.out.println("生产订单同步失败");
////            return ;
////        }
////        System.out.println("生产订单没有需要同步数据");
////        return ;
////    }
//
//
////}
